﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <%@ include file="../common/header.jsp" %>
</head>
<body>

<div class="container " style="margin-top: 20px">
    <%@ include file="../common/top.jsp" %>

    <div class="row">
        <div class="col-sm-3">
            <c:set var="menu" value="customerPool"/>
            <%@ include file="../common/menu.jsp" %>
        </div>
        <div class="col-sm-9">
            <div class="row">
                <div class="col-sm-12">
                    <h1 class="page-head-line">客户池</h1>
                </div>
            </div>
            <form class="form-inline" id="searchForm" action="/customerPool/list.do" method="post">
                <input type="hidden" name="currentPage" id="currentPage" value="1">
                <div class="form-group">
                    <label>关键字:</label>
                    <input type="text" class="form-control" name="keyword"
                           value="" placeholder="请输入姓名/邮箱">
                </div>
                
                <button type="submit" class="btn btn-primary">
                    <span class="glyphicon glyphicon-search"></span> 查询
                </button>
            </form>

            <table class="table table-striped table-hover">
					<tr>
						<th>编号</th>
						<th>名称</th>
						<th>年龄</th>
						<th>性别</th>
						<th>电话</th>
						<th>qq</th>
						<th>职业</th>
						<th>来源</th>
						<th>业务员</th>
						<th>状态</th>
						<!-- 
						<th>操作</th>
						 -->
					</tr>

					<c:forEach var="entity" items="${pageInfo.list}">
						<tr>
							<td>${entity.id}</td>
							<td>${entity.name}</td>
							<td>${entity.age }</td>
							<td>${entity.genderName}</td>
							<td>${entity.tel}</td>
							<td>${entity.qq}</td>
							<td>${entity.job.title}</td>
							<td>${entity.source.title}</td>
							<td>${entity.seller.name}</td>
							<td>${entity.statusName}</td>
							<!-- 
							<td>
								<a role="button" class="btn btn-warning btn-xs transferBtn" data-json='${entity.json}'>
                                    <span class="glyphicon glyphicon-leaf"></span> 移交给我
                                </a>
                                <a role="button" class="btn btn-warning btn-xs transferBtn" data-json='${entity.json}'>
                                    <span class="glyphicon glyphicon-leaf"></span> 移交
                                </a>
							</td>
							 -->
						</tr>
					</c:forEach>

				</table>

            <%@ include file="../common/page.jsp" %>
        </div>
    </div>
</div>

</body>
</html>